package com.chushouya.controller.order.clerk;

import com.chushouya.common.constant.ServiceType;
import io.swagger.annotations.Api;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@Api(tags = ServiceType.CLERK + "业务员下单")
@RestController
@RequestMapping(ServiceType.CLERK + "/orderCreate")
public class ClerkOrderCreateApiController {
//
//    @Resource
//    private ClerkOrderCreateApiService clerkOrderCreateApiService;
//
//    @PostMapping("/selfCreate")
//    @ApiOperation("自主下单")
//    @AuthValidate
//    public Response<Long> selfCreate(@Validated @RequestBody SelfCreateDTO create) {
//        create.setClerkId(Contexts.getUserContext().getClerkId());
//        return Response.success(clerkOrderCreateApiService.selfCreate(create));
//    }
//
//    @PostMapping("/returnCreate")
//    @ApiOperation("回头客下单")
//    @AuthValidate
//    public Response<Long> returnCreate(@Validated @RequestBody ReturnCreateDTO create) {
//        create.setClerkId(Contexts.getUserContext().getClerkId());
//        return Response.success(clerkOrderCreateApiService.returnCreate(create));
//    }
//
//    @PostMapping("/multiCreate")
//    @ApiOperation("一单多台")
//    @AuthValidate
//    public Response<List<Long>> multiCreate(@Validated @RequestBody MultiCreateDTO create) {
//        create.setClerkId(Contexts.getUserContext().getClerkId());
//        return Response.success(clerkOrderCreateApiService.multiCreate(create));
//    }

}
